import Mock from "mockjs"
const Random = Mock.Random

const Result = {
    code: 200,
    msg: '操作成功',
    data: ''
}

const picInfo = [
    "https://img2.baidu.com/it/u=260021457,2152166386&fm=253&fmt=auto&app=138&f=JPEG?w=750&h=500",
    "https://img2.baidu.com/it/u=2456396253,1213722944&fm=253&fmt=auto&app=138&f=JPG?w=560&h=320",
    "https://img1.baidu.com/it/u=4037665582,1665463600&fm=253&fmt=auto&app=138&f=JPEG?w=889&h=500",
    "https://img0.baidu.com/it/u=2110783569,3650855013&fm=253&fmt=auto&app=138&f=JPEG?w=658&h=299",
    "https://img2.baidu.com/it/u=652573327,3619363721&fm=253&fmt=auto&app=138&f=JPEG?w=1022&h=500",
    "https://img2.baidu.com/it/u=3405479420,581330551&fm=253&fmt=auto&app=138&f=JPEG?w=499&h=320"
]
Mock.mock( /\/pic\/.+$/, 'get', () => {
    Result.data = picInfo[Random.integer(0, 5)];
    return Result
})

export default Mock
